import { instance } from "../utils/request";
const getActionLogsPagination = async (params) => {
	return await instance.get("/ActionLogs/Pagination", params);
};

const addActionLogs = async (data) => {
	return await instance.post("/ActionLogs/Add", data);
};

const updateActionLogs = async (data) => {
	return await instance.post("/ActionLogs/Update", data);
};

const getActionLogsDetail = async (id) => {
	return await instance.get("/ActionLogs/Detail", { id : id });
};

const deleteActionLogs = async (id) => {
	return await instance.post("/ActionLogs/Delete", { id : id });
};

const actionLogsApi = {
	getActionLogsPagination,
	addActionLogs,
	updateActionLogs,
	getActionLogsDetail,
	deleteActionLogs,
};

export default actionLogsApi
